package com.qms.qep.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 工序流转记录对象 process_record
 * 
 * @author qep
 */
public class ProcessRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 批次ID */
    @Excel(name = "批次ID")
    private Long batchId;
    
    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 工序ID */
    @Excel(name = "工序ID")
    private Long processId;
    
    /** 工序名称 */
    @Excel(name = "工序名称")
    private String processName;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private String operator;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operationDate;

    /** 使用设备 */
    @Excel(name = "使用设备")
    private String equipment;

    /** 工序结果 */
    @Excel(name = "工序结果")
    private String processResult;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBatchId(Long batchId) 
    {
        this.batchId = batchId;
    }

    public Long getBatchId() 
    {
        return batchId;
    }
    
    public String getBatchNo() 
    {
        return batchNo;
    }

    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public void setProcessId(Long processId) 
    {
        this.processId = processId;
    }

    public Long getProcessId() 
    {
        return processId;
    }
    
    public String getProcessName() 
    {
        return processName;
    }

    public void setProcessName(String processName) 
    {
        this.processName = processName;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    public void setOperationDate(Date operationDate) 
    {
        this.operationDate = operationDate;
    }

    public Date getOperationDate() 
    {
        return operationDate;
    }

    public void setEquipment(String equipment) 
    {
        this.equipment = equipment;
    }

    public String getEquipment() 
    {
        return equipment;
    }

    public void setProcessResult(String processResult) 
    {
        this.processResult = processResult;
    }

    public String getProcessResult() 
    {
        return processResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("batchId", getBatchId())
            .append("batchNo", getBatchNo())
            .append("processId", getProcessId())
            .append("processName", getProcessName())
            .append("operator", getOperator())
            .append("operationDate", getOperationDate())
            .append("equipment", getEquipment())
            .append("processResult", getProcessResult())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
} 